<template>
	<view class="looklist spaceEvenly">
		<view class="line spaceBetween">
			<view class="title">最近访客</view>
			<view class="totalNumber">浏览总数</view>
		</view>
		<view class="line spaceBetween">
			<view class="imgbox flex">
				<divimg class="avatar" v-for="(item, index) in list" :src="item.avatar" mode="aspectFill" v-if="index < 3"></divimg>
			</view>
			<view class="click">
				{{ clickNum }}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'look',
		props: {
			list: {
				type: Array,
				default: () => [],
			},
			clickNum: {
				type: Number,
				default: 0,
			},
		},
		data() {
			return {};
		},
	};
</script>

<style lang="scss" scoped>
	.looklist {
		width: 690rpx;
		height: 140rpx;
		background: #ffffff;
		border-radius: 20rpx;
		margin: 0 auto;
		flex-direction: column;

		.line {
			align-items: center;
			font-size: $uni-font-size-12;
			width: 600rpx;
			margin: 0 auto;
			.title {
				color: #999999;
			}
			.totalNumber {
				color: #000000;
			}
			.imgbox {
				.avatar {
					width: 60rpx;
					height: 60rpx;
					background: #ffffff;
					margin-right: 20rpx;
					border-radius: 50%;
				}
			}
			.click {
				font-size: $uni-font-size-15;
				color: $price-color;
			}
		}
	}
</style>
